<?php
//【类的继承】
//http://blog.sina.com.cn/s/blog_3fef5e950100pb0l.html

//[如果函数名一样将覆盖父类同名函数]
require_once "test.php";

class root{
function dayin1(){
return "主类打印 <br/>";
}
}

class exclass extends root{
function dayin1(){
return "扩展类打印 <br/>";
}
}

$dayin_a=new exclass();
echo $dayin_a->dayin1();



?>